# # 启动 PX4 SITL 模拟器
# gnome-terminal -- bash -c "export PX4_SIM_HOST_ADDR=192.168.1.25;cd /home/nvidia/PX4-Autopilot; make px4_sitl_default none_iris; exec bash"

# # 启动 MAVROS 节点
# gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash; ros2 run mavros mavros_node --remap __ns:=/drone_0 --ros-args -p fcu_url:=udp://:14540@localhost:14580 ; exec bash"


# # 启动 MAVROS 节点
# gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash; source /home/nvidia/soft_simulate/install/setup.bash;ros2 launch airsim_ros_pkgs airsim_node.launch.py; exec bash"



# # source /opt/ros/foxy/setup.bash; ros2 run mavros mavros_node --remap __ns:=/drone_0 --ros-args -p fcu_url:=udp://:4152@192.168.16.190:14550



# source /opt/ros/foxy/setup.bash; ros2 run mavros mavros_node --remap __ns:=/drone_0 --ros-args -p fcu_url:=dev/ttyACM0:115200


# gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash;ros2 run swarm_avoid_client node1; exec bash"


gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash;ros2 run swarm_avoid_client node1; exec bash"
gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash;ros2 run swarm_avoid_client node2; exec bash"
gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash;source /home/nvidia/soft_simulate/install/setup.bash;ros2 run swarm_avoid_client node3; exec bash"
